package com.honghu.lease.web.admin.mapper;

import com.honghu.lease.model.entity.SystemUser;
import com.honghu.lease.web.admin.vo.system.user.SystemUserItemVo;
import com.honghu.lease.web.admin.vo.system.user.SystemUserQueryVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
* @author liubo
* @description 针对表【system_user(员工信息表)】的数据库操作Mapper
* @createDate 2023-07-24 15:48:00
* @Entity com.honghu.lease.model.SystemUser
*/
public interface SystemUserMapper extends BaseMapper<SystemUser> {

    /**
     * 根据条件分页查询后台用户列表
     * @param page
     * @param queryVo
     * @return
     */
    IPage<SystemUserItemVo> pageSystemUserByQuery(IPage<SystemUser> page, SystemUserQueryVo queryVo);

    /**
     * 校验用户是否存在
     * @param username
     * @return
     */
    SystemUser selectOneByUsername(String username);
}




